<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewTUnitsTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewTUnitsLabel_id}"/>
                    <h:outputText value="#{tUnitsController.selected.id}" title="#{bundle.ViewTUnitsTitle_id}"/>
                    <h:outputText value="#{bundle.ViewTUnitsLabel_make}"/>
                    <h:outputText value="#{tUnitsController.selected.make}" title="#{bundle.ViewTUnitsTitle_make}"/>
                    <h:outputText value="#{bundle.ViewTUnitsLabel_model}"/>
                    <h:outputText value="#{tUnitsController.selected.model}" title="#{bundle.ViewTUnitsTitle_model}"/>
                    <h:outputText value="#{bundle.ViewTUnitsLabel_year}"/>
                    <h:outputText value="#{tUnitsController.selected.year}" title="#{bundle.ViewTUnitsTitle_year}"/>
                    <h:outputText value="#{bundle.ViewTUnitsLabel_fuelType}"/>
                    <h:outputText value="#{tUnitsController.selected.fuelType}" title="#{bundle.ViewTUnitsTitle_fuelType}"/>
                    <h:outputText value="#{bundle.ViewTUnitsLabel_origPurchaseDate}"/>
                    <h:outputText value="#{tUnitsController.selected.origPurchaseDate}" title="#{bundle.ViewTUnitsTitle_origPurchaseDate}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewTUnitsLabel_owner}"/>
                    <h:outputText value="#{tUnitsController.selected.owner}" title="#{bundle.ViewTUnitsTitle_owner}"/>
                    <h:outputText value="#{bundle.ViewTUnitsLabel_operator}"/>
                    <h:outputText value="#{tUnitsController.selected.operator}" title="#{bundle.ViewTUnitsTitle_operator}"/>
                    <h:outputText value="#{bundle.ViewTUnitsLabel_decommFlag}"/>
                    <h:outputText value="#{tUnitsController.selected.decommFlag}" title="#{bundle.ViewTUnitsTitle_decommFlag}"/>
                    <h:outputText value="#{bundle.ViewTUnitsLabel_poNum}"/>
                    <h:outputText value="#{tUnitsController.selected.poNum}" title="#{bundle.ViewTUnitsTitle_poNum}"/>
                    <h:outputText value="#{bundle.ViewTUnitsLabel_serviceNum}"/>
                    <h:outputText value="#{tUnitsController.selected.serviceNum}" title="#{bundle.ViewTUnitsTitle_serviceNum}"/>
                    <h:outputText value="#{bundle.ViewTUnitsLabel_origPurchasePrice}"/>
                    <h:outputText value="#{tUnitsController.selected.origPurchasePrice}" title="#{bundle.ViewTUnitsTitle_origPurchasePrice}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{tUnitsController.destroyAndView}" value="#{bundle.ViewTUnitsDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewTUnitsEditLink}"/>
                <br />
                <h:commandLink action="#{tUnitsController.prepareCreate}" value="#{bundle.ViewTUnitsCreateLink}" />
                <br />
                <h:commandLink action="#{tUnitsController.prepareList}" value="#{bundle.ViewTUnitsShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewTUnitsIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
